<div class="top">
  <div class="left"></div>
  <div class="right"></div>
  <div class="center">
    <div class="heading"><a href="index.php?route=webboard/board"><?php echo $heading_title; ?></a></div>
  </div>
</div>

<div class="middle">
 <h1>[ <a href="index.php?route=webboard/board"><?php echo $webboard_show_limit." ".$webboard_show; ?></a> ]</h1>
<table border="0" width="100%" id="table1">
	<tr>
		<td align="center" bgcolor="#99FFCC"><span style="font-size: 13px;font-weight: bold; "><?=$text_title?></span></td>
		<td align="center" bgcolor="#99FFCC"><span style="font-size: 13px;font-weight: bold; "><?=$text_date?></span></td>
		<td align="center" bgcolor="#99FFCC"><span style="font-size: 13px;font-weight: bold; "><?=$text_author?></span></td>
	</tr>
<?
    $i=0;
   foreach ($show_board as $ask_post) {
     if ($i%2==1) {$chk=' bgcolor="#CCFFCC" ';}else{$chk='';}
     if (iconv_strlen($ask_post['title'],"utf-8") > 40) {$ask=iconv_substr($ask_post['title'],0,20,"utf-8")."...";}else{$ask=$ask_post['title'];}
?>

	<tr>
		<td align="left" <?=$chk?>>
		<a href="index.php?route=webboard/read_board&id=<?=$ask_post['ask_id']?>" title="<?=$ask_post['title']?>">
		<?=$ask;?></a> 
		   <? if ($ask_post['new'] <= $webboard_day) {?>
		   <img src="catalog/view/theme/default/image/new.gif" alt="new" />
		   <? } ?>
		--- [ <?=$ask_post['number_reply']?> ] 
		   <? if ($ask_post['new_reply'] <= $webboard_day) {?>
		   <img src="catalog/view/theme/default/image/new.gif" alt="new" />
		   <? } ?>
		</td>
		<td align="center" <?=$chk?>>
		<?php  echo date('j M Y, g:i a', strtotime($ask_post['date'])); ?> 
		</td>
		<td align="right" <?=$chk?>>
		<?=$ask_post['author'];?>							     
		</td>
	</tr>
<? $i++; } ?>
</table>
<!-------End Webboard -------------->

<div class="bottom">
  <div class="left"></div>
  <div class="right"></div>
  <div class="center"></div>
</div>



<script Language="Javascript">
<!--
function Conf(Object) {
	if (confirm("<?=$alert?>") == true){
		return true;
	}
	    return false;
	}
//-->
</script>